<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="com.baidu.ueditor.ActionEnter"
    pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%

    request.setCharacterEncoding( "utf-8" );
	response.setHeader("Content-Type" , "text/html");
	//得到页面所在服务器的全路径
	String rootPath = application.getRealPath("/");
	//得到项目名称
	String contextPath=request.getContextPath();
	//以下修正图片在线管理不显示问题
	String action = request.getParameter("action");  
    String result = new ActionEnter( request, rootPath ).exec();  
    if( action!=null /*&& (action.equals("listfile") || action.equals("listimage") )*/ ){  
        rootPath = rootPath.replace("\\", "/");
        result = result.replaceAll(rootPath, "/");//把返回路径中的物理路径替换为 '/'  
    }  
    out.write( result ); 
	
	//out.write( new ActionEnter( request, rootPath ).exec() );
	
%>